<template>
    <div class="content">
        	<div class="spare-ar">
				<div class="spare-ara">
					<div class="spare-ara-a clearfix">
						<div class="spare-ara-al">
							<div class="spare-ara-all"><input type="text" v-model="content" placeholder="请输入关键字" /></div>
							<div class="spare-ara-alr" v-on:click="getDatas(content)"></div>
						</div>
						<div class="spare-ara-ar">
							<a href="#" class="spare-tj">导 出</a>
							<a href="#" class="spare-ck" style="display:none" hid='Y'>上传附件</a>
							<a href="#" class="spare-del" style="display:none" hid='Y'>删除附件</a>
							<a href="#" class="spare-qx" sel="Y" style="display:none" hid='Y'>全 选</a>
							<a href="access-edit.html" class="spare-edit" style="display:none" hid='Y'>编 辑</a>
							<a href="#" class="spare-del" style="display:none" hid='Y'>删 除</a>
						</div>
					</div>
					<div class="documentation nottake">
                    <a href="#" v-for="data in datas" :key="data.id">
                        <li>
                        <div class="spare-new clearfix">
                            <div class="spare-newl">数据模块编码:{{data.code}}</div>
                            <div class="spare-newl">标题：{{data.title}}</div>
                        </div>
                        <div class="spare-new clearfix">
                            <div class="spare-newl">内容：{{data.content}}</div>
                            <div class="spare-newl">可见方式：10</div>
                        </div>
                        <div class="spare-new clearfix">
                            <div class="spare-newl">所属用户：{{data.userName}}</div>
                            <div class="spare-newl">附件：{{data.file}}</div>
                        </div>
                        <div class="paper-c">日期：{{data.publishDate}}</div>
                        <div class="documentation-check"></div>
                        </li>
                    </a>
                        </div>
				</div>
			</div>
    </div>

</template>
<script>
export default {
  data() {
    return {
      datas: [],
      content:''
    };
  },
  methods: {
    getDatas: function(content) {
      this.axios
        .get("/ietm/findByContent", {
          params: {
            content: content
          }
        })
        .then(res => {
          this.datas = res.data;
        });
    }
  },
  created() {
    this.getDatas("");
  }
};
</script>
</script>
<style scoped>
@import url("../../../assets/css/content.css");
@import url("../../../assets/css/animation.css");
</style>

